import instance from '@/utils/http'
import upload from '@/utils/upload'

export const uploadAvatar = () => upload(1, ['image'], ['album'])
/**
 * 
 * @param data 登录接口
 */
export const login = (data: any) => instance.post("/admin/client/login", data)

/**
 * 
 * @param token 推出登录
 * @returns 
 */
export const logOffs = () => instance.put('/admin/client/logOff')

/**
 * 得到公司图片
 */
export const getCompanyUrls = () => instance.get('/admin/client/company/getPictureByUser')